package gravipong;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

import javax.swing.JFrame;

class JFrameKey extends JFrame implements KeyListener{
	
    boolean[] keys = new boolean[525];
    	
    public void keyPressed(KeyEvent key) {
    	keys[key.getKeyCode()]=true;
 	}
    
    public void keyReleased(KeyEvent key) {
 		keys[key.getKeyCode()] = false;
    }
    
    public void keyTyped(KeyEvent key) {}
   	
    public boolean[] getKeys(){
   		return keys;
   	}
}